/**********************************************************/
/* Goblin Defense - A tower defense game for Wii Homebrew */
/* Copyright (C) 2009 Ricardo Bueno Cordeiro              */
/* Licensed under de GNU General Public License v2.0      */
/*   See license_gplv2.txt for detalis                    */
/**********************************************************/

#ifndef __PONY_H_
#define __PONY_H_

#include <gccore.h>

#include "path.h"
#include "area_item.h"

class Game;

class Pony : public AreaItem {
private:
	f32 x, y;
	f32 x_pertubation, y_pertubation;

	PATH_POS pos;
	PATH *path;
	
protected:
	void advance(u32 steps);

public:
	Pony(PATH *p);

	f32 get_x() { return x + x_pertubation; }
	f32 get_y() { return y + y_pertubation; }

	virtual void hit(Game *game, u32 damage, u32 type) = 0;
};

#endif
